<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<script>
	$(document).ready(function() {
		//聚焦第一个输入框
		$("#name").focus();
		//为inputForm注册validate函数
		$("#inputForm").validate({
			rules : {
				name : "required",
				memo : "required"
			}
		});
	});
</script>
<form id="inputForm" class="well form-inline" action="${ctx}/adoms/msgNoticeType/save" method="post">
	<input type="hidden" name="id" value="${msgNoticeType.id}" />
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<i class="icon-flag"></i>
			<strong>消息类型表单</strong>
		</thead>
		<tr>
			<td class="span2">消息类型:</td>
			<td>
				<input id="name" name="name" <c:if test="${msgNoticeType.id < 6}">readonly="readonly"</c:if> type="text" value="${msgNoticeType.name}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>备注:</td>
			<td>
				<textarea id="memo" name="memo" rows="4" class="span6">${msgNoticeType.memo}</textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input class="btn" type="submit" value="提交" />
				&nbsp;
				<input class="btn" type="button" value="返回" back="back" />
			</td>
		</tr>
	</table>
</form>
